package com.ease.common.util;

import com.ease.common.vo.Ordering;

/**
 * 
 * @author nathanleewei
 * 
 */
public abstract class OrderingUtil extends Detect {

	public static final String FUNCTION_LENGTH = "LENGTH";

	public static final String LEFT_PARENTHESIS = "(";

	public static final String RIGHT_PARENTHESIS = ")";

	public static Ordering length(String columnName) {
		return new Ordering(FUNCTION_LENGTH + LEFT_PARENTHESIS + columnName + RIGHT_PARENTHESIS);
	}

}
